#include "process_bar.h"
void down_load(double filesize, double rate)
{
    double sum = 0;
    while (sum <= filesize)
    {
        process_bar(sum, filesize);
        sum += rate;
        usleep(200000);
    }
    printf("\n");
}
int main()
{
    //ForTest();
    down_load(100, 99);
    down_load(200, 3);
    down_load(500, 17);
    down_load(300, 29);
   // process_bar();
    return 0;
}
